#pragma once

#include "e2d/core/physics/components.h"
#include "e2d/yml/Serializer.h"

namespace e2d
{

    namespace physics
    {

        struct  Serializer : public e2d::BasicSerializer
        {
            FXCC_YML_ENTITY_ENCODE_DECODE;

            void EncodeComponents(YAML::Node& node, const e2d::Entity* entity);

            void DecodeComponents(const YAML::Node& node, e2d::Entity* entity);

        };
    };
};